export default class Queue {
    constructor() {
        this.items = [];
    }

    insert(element) {
        this.items.push(element);
    }

    delete() {
        return this.items.shift;
    }
    front(){
        return this.items[0]
    }

    isEmpty() {
        return this.items.length === 0;
    }

    size() {
        return this.items.length
    }
    toString() {
        let result = '';
        this.items.forEach(e => result += this.items[i] + '')
    }
}